package com.jixi.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@Data
@Schema(description = "学校表")
@TableName("school")
public class School {
	
	@Schema(description = "学校id")
	@TableId(value = "school_id")
	private Long schoolId;
	
	@Schema(description = "学校名称")
	private String schoolName;
	
	@Schema(description = "账号")
	private String schoolUsername;
	
	@Schema(description = "密码")
	@JsonIgnore  //让springmvc将对象转换为JSON时忽略password
	private String schoolPassword;
	
	@Schema(description = "学校地址")
	private String schoolAddress;
	
	@Schema(description = "负责人名称")
	private String principalName;
	
	@Schema(description = "负责人电话")
	private String principalPhone;
	
	@Schema(description = "学校邮箱")
	private String schoolMail;
	
	@Schema(description = "学校入账账户")
	private Long accountId;
	
	@Schema(description = "状态（0 禁用，1 启用）")
	private Integer status;
	
	@Schema(description = "是否删除（0未删除 1 删除）")
	private Integer isDeleted;
	
	@Schema(description = "更新时间")
	private Date updateTime;
	
	@Schema(description = "创建时间")
	private Date createTime;
	
	
}
